add option for outdir