added csharp mode