let the user decide wether to enable threads or not