use varints

todo:

- [x] fix tests
- [x] check multibuffer-stream still works