queues almost working