Rewriting the netty impl