process multiple queues