add pre-save and post-save actions