added wait_queues