start of C-based queue manager