added script update, duplicates are now marked by 'DUPLICATE'