fixed up searchForValue, gets the actual path to the value