update gateway app.config