Refine paths