simplify path searching