update settings for gateway.