adds thread