add dfs_to_path method