modified to work with salt autoinstall