add rest client; modify rest server