fixed #7 again, assign(OUTDIR,...) was not working right