replace last bit of card specific in the engine with groovy script