Revert "remove old content in pathfinder.c for rebase"

This reverts commit 831e9d6a09bc9c2b315c29d14c0e3cf662f306df.
revert to gautam's commit