refine config file