trivial.
Refactors stream receiver.