setting GATEWAY_OPTS