contains the functionality of the plugin