updated to use latest version of metadatasharing