added --filter option to filter on metadata