avoid some exceptions when parsing responses