final state
add test for search for not reachable target nodes
simplify path building