updated to version 2 of the logger and the plugin class