make http/tcp into individual package.
setup serialization with decode/encode option.