refine the configure