pack version structs for storage