added support for Visual Studio events