getting threads