updated control script