commit before sleeping