add support for streaming the payload