update auto script