default is 2 for nbCores