update install.sh to be more flexible