fixes for card-terminal hardware