changed the url detection added server object