rewrite chunkec reading to be in active mode