some code to revert card back to clean state when we have fscked up