creation of clients on threads