refactored to create an uninstall comand