added outdir to compress
added outdir to compress