fixed some stuff for pitsleep()