added metadataCriteria and priority fields