add recovery when publish