adding debug control script