switch to netty