bfs, but i dont like it
conf