simplified how output_dir is handled