We could store in pgapi_gw ordered list of gateways, this require a bit of UI changes