pass client to plugins.