conditionally loading plugin as a module