debug code to figure out queues