who's responsible for actually creating the `$root_dir` directory?