new thread idle
added idlethread, application switch works