replace document.URL with window.location.host in clnt