private static IEnumerable<MessageWrapper> get_messages(MessageQueue[] queues)
 {
     var msgs = new List<MessageWrapper>();
     queues.ToList().ForEach(q => msgs.AddRange(q.GetAllMessages().Select(m =>  new MessageWrapper(q,m))));
     return msgs;
 }