integrating tcp server into the module