sync primitives; fix allocator