modified to resend APDU when response was 6Cxx