add compression for log