make sure we preserve metadata on the roundtrip