added message type in stream