get rid of unused ChunkedWriter (although I don't think this will fix the stalling issue)