added threads option