add global settings

support host and uihost setting