minor tweaks for hook-sleep