thread implementation changed
thread thingy done