a tcp server using fmt protocol and integrating lua script