hack to set numCores