add platform logic for pkg install