added getLocation and getPathStructure

added 2 function