add util method for emptying queues