use pluginCallback for SSE