basic packer, need to solve best sorting method