added functionality for ignoring duplicates, for adding tags and groups