add clarity to error handling