improved the code, changed the webdis server url to one that is behind a virtual host (to avoid proxy blocking special ports)