fix bugs with install- and uninstall-routines