begin re-write of plugin framework, so it works.