threads option added