added DFS and tour logging