add prepare_meta_writebuffer