changed the plugin loader method to reflect changes