adding extra debug messages to control script