refine PATH