refactored Netty IPC code into separate classes