added sequence numbers for messages