split off common functions to install_common.sh