moved setting to server.go, setup new server based on settings