converted stuff outside bfs to keyified