write flight module