checking for auto run