reconstruct the packages