final version of autopilot