manage root dir.