restore ip addresses, dfs + prune