adding a sleep to to restarts