implemented DeepSleep thread, solved issues -- note tha going into sleep shut down the serial connection