replace groovy code with card script
replace groovy code with card script