queue manager implementation (for real)