factor out exec function; add reinstall functionality to rerun setup script