use WriteTar in compressor