modifing some thread stuff...