remove dups from links files