feature(buffer) add cut and clear