add plugins to save() method