refactored out base_dir

replaced fs with fs.extra