add return code to cpu.sh