fixing scripts