linking scripts, removing dups