messed up output dir creation
messed up output dir creation