modified the usage of server URL to make it a global parameter