added the file that checks and polls queues