add error handling for nuget