adding stream creation into use of plugin