add gzip chunkfile writing