added memoized expanded_path