added possibility to specify internal node id for getPathBetween