add some restsharp code