prepare for dotnet version of the same