worked on tcp stream