command; better interface that supports whole buffer