better legacy support (inclusion of http)