parse_cards: added 'rewrite argument', more fields