limit number of cores