revising  fastdfs's client code to use in lua script