take number of cores to use as option