move the dynamic CPU determination into runtime and substract one