fix bug for namespace
remove Thread