support for  all necessary events and define environment for this plugin