handles multiples streams