minor changes
improved flight logic