more stable path finding