more error handling on request