add setupGatewayConfig