debug the script