setup gateways