gateway script update