refine path