allow hostname and port in place of host on uri