refactoring netty "frame decoder" from netty. later will be driven via props