refine the configuration mechanism