add basic support for minibuf