change the structor of tcp_stream and tcp_stream_container, change container into a dict