fix factory for nuget