stream: using config instead enviroment vars.

closes: #2.