add multithread server and reform the folders