- refactored hierarchy to use path as _id