adding stream middleware docs