changes to plugin for updated plugin pattern