various changes to microcontroller version of client-server