added context parameter to plugins