dupe removal. fixes #9