more improvements on auto-install script