added thread manager