removed linux sleep, make it more windows compatible