add option for writeCard