debugging control script