added thread manager initialization