fixed a timeout rc and better error messages