error handling sanity