make error handling a bit less verbose