better dupe detection and hopefully that fixed the bug