further refactors netty out