adding support for packing