fixed more nanosleep calls