corrected base_dir