the sequence of getRootDirs