check for dupes; closes #12