workign on auto script