need debug of findPath