add support for metadatapartition