plugin now uses an unordered set to keep track of what has been seen