you need to wrap writer for compression