adding log statements in control script