updated auto run script