add option to compress output