refine config, check name