v4, better handling of header errors.