refacotr netty client