finished adding most of the functionality for the pluginEngine