setting up code for queues for each resource