williamcotton: what about just writing the buffer?