renaming datapath to refpath