remove sleeps in timeout loop