implemented server side packing