use getopt for uninstall