actually implement getting the path from Proc as documented