Modify csharp and twisted  network functions