gateways very nearly functional