init targetDir
visit order