added vector packing, not tested, not finished