fixes for plugin remover logic