fixes to deep sleep states