adds some hooks for pre-post saving