add message lost detection