doxygen comments, some differnt code for pathfind