mpmc class improved