change api to stream plaintext