more ubuf_block optimizations; new primitives