reimplement cancel path reroute
Merge pull request #745 from YaleSTC/715_redo_316

reimplement cancel path reroute