logging option, (not yet functional) mode option, output dir name change