added multi core support for cpu usage