add contex for stream