basic functions run, stop, sleep