add initial version of tcp server