one was probably the auxiliary power unit , the gas turbine in the rear of the fuselage which provided power when the plane was on the ground , and backup power in the event of electrical failure during flight .