standardise serialize output