add better handling for invalid flight info