it's better to have functions that take a request and emit a stream response