made some error handling happen