modulize insertFlight