got priority queues working