moved a usleep to a place where it makes more sense