new version of bfs and amazing clien