only run these hooks if it saves