adding conditions (defining main classes) in case the plugin is duplicated