attempt to fix recursion on elevationFromPath