error handling and formatter applied