first steps towards a better structure for streams