sleep/wake/relogin improvements