set the error handling