improve error logging for card reading