replace groovy code with card script
fix mill parser to support "top card", replace "top a card" with "top card"