fixes, gzip output, outdir