a few fixes for packing pack files