using $OUTDIR for output location