fix dfs & bfs, and do not check assign in the backend