adding some control scripts