store messages in queue