fix up control script