initializing stream to webmcontainer