use varints

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