add some army serialization code