scripts debugged