outdir is now const and set in the constructor