finished refactor to RestSharp