more robust uninstallation