make RestClient not static