add script for merging duplicates