attempt to implement readable stream.  might abandon this in favor of jsonstream