set globals for plugin