clarify error handling