adding mkdir for output dir