write to addonpurchase and use int, not str for compare