pointing also output_dir to e: