exclude duplicates, support output settings