core: add card_info function