ADD:copy from netty example for proxy