agent script update