add protection in msg dump by id