control script fixes