worked through all code to refactor initial working version.
updated the settings for the extended plugins tab.