add dijkstra with strange errors