prototype for recovery and clear counts before sending message