added thread methods