remove stupid buf->string->buf convertation