rewrite to load from config file, allowing multiple instances of the same plugin to be instantiated. WIP.