added persistence option for workers
bugfix to sleep time