adding support for multiple profiles in appInstall