temporarily overpass isValidPath() method