bug fixing scripts