cleaner logging
fixes sleep reseting