master: add strbuf to support output buffer