extern api use now StrBuf