allow specifying the hostname as the host, eg. host: 'localhost'