removed logic for local_output_dir