https://github.com/rrthomas/chainstream
