support for post-install and pre-remove feauture