fixed both install and uninstall hooks