extra checking for unknown return codes