fixed the debug scripts