rewrote install/uninstall mechanism