refactor in 'install.sh'