Append to Buffer, writing to CDC more stable

just a first working version