minor C# work, nothing to get excited over