wip: check number of cores