scheduler and queues working