Initial conversion to netty