changes sleep to do_after, fixes oversight