patches to to c# library