updating how the client handles responses to allow for chunking