debugging scropt