replace bytes.Buffer by bb.go