added context (this) parameter to the plugin