rename beforeSave/afterSave to beforeUpdate/afterUpdate