a.host will include the port number, but we should probably use the URL object here if possible. I will look into that.