dijkstra work in progress; compiles still