updates and set default serverUrl based on current server