add prefs

added support for enabling/disabling using preference pane