hook up to new varint API