making streaming responses work