securing wake from sleep