added logging to output dir