updating for new restsharp