added andropilot code