find mfile's path/dif
generalize datapath