switch from echo to stream