fix queue allocator code and rename