local working version of flight