adding support for pre package uninstall