added "mc.cores" option to limit the number of cores used