start of handling flights