fix cpu and mem scripts for new output