add threads option