fixed several bugs, and updated nuget provider