add list-cpus code