split error handling