error handling in renthouse