use usleep rather than sleep
usleep improvements