standard implementation for getRootDir
update doc