adapted to changes in buffer/buffer_ref API
adapted to changes in buffer/buffer_ref API

christianparpart/x0,christianparpart/x0,christianparpart/x0,xzero/x0,xzero/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,xzero/x0,xzero/x0,xzero/x0,christianparpart/x0