add check to uninstall