add debug to sleep cycle