threads support

part 2