implemented simple path searching