refine config, group by sections.