saving def,h in flight mode testing