change the construction to the plugin