refine configure.