option added: initialize output directory