fix bug
Modify rest client host config
remove unused code