more refactoring: changed process.info.name to process.info.type