fixed debugging scripts