shortest path stuff actually works now