add fold_buffer_automatically