first cut at adding all the analog circuitry