make urlmon independent of server code