trying to solve openpath searching bottleneck