metadata works with hierarchical indexes