refine config, add error line log