fix cpu util calc and swift bugfix