added getPaths