refinement to take configuration