simplify the message lost detection implementation