bugfixes to install process