open thread when cmd is launched.