refine configuration