changed to print queues on debug mode