added getGatewayFields