better error msgs during packing