added auto script