stream adapter init