add DebugScripts properites
fix naming error
modified some code