separate functions needed to install in install.sh