update by script