modified beeline and avoidance; added calibrations for ballast