add multithread mechanism for ZTL