updated to new IndexMetadata interface