added a queue dispatcher to implement load balancing