simplified typedefs and packer.ipp