updated tcp server example