final touches to auto run script