when plugin is defined, pass response to it