expose BufferObj
better API and demo