update metadata reference with mappings from items to compound objects