redev of getPath