add error report in config file