fix reading threads part 1