added local storage to the plugin