made the cpu control more idomatic