correctly set timeouts