setup the prototypal inheritance structure for the plugin