add support for MAX_ERROR_REPORTS