changed sleep method, now works without sudo