correct main for plugin uses