restore preferences for plugin