add support for specifying gateway in model synchronizer