fixed configuration bug and reverted changes to deepsleep for now