Revert "serverurl was  not global"

This reverts commit 05dcffbf1212e6dba34c3ea159af6f06ca283500.