add sleep for osx/linux boxen