passing context to plugins before render