major implementation overhaul of the buffer-class