add message_queue class