create main thread