setting up DFS