more robust iobuf, wip