patch the sage gateway