fix install / uninstall problems