queue manager to reduce redundant queries