script debugged