add support for tags in preprocessing for streaming duplicate marking