make sure to call the right variable for log_dir