Update gateway.sh