better path finding, more docu