debugging the path finder