global variable for server url + various fixes
Merging