add cleanup-buffer command