use restclient  instead of net/http