fix refrence to scripts
remove duplicates