added some dijkstra stuff