installation script bugfixes