batch DFS