fix missing 'you control' in generation of filter
replace groovy code with card script