checking in some of the code for fixing queues