reduced buf.toString