improved simple shortest path performance.