add callbacks for undelete