add target monitor to shortestPath algo