added file extention to theRootDir