need to extract message type