made pathfinder abit more reliable with entitys. dunno.