adding a reference to the message queue