refactor install.sh