added array of gateways