a prototype streams implementation