refactoring: MRRoot is a subclass of MRDirectory