add the pathfinder source code