add more cases for the card handler