basic attempt to implement streaming response, needs testing