added pre uninstall capability as well