changes to getPath.groovy