add timeserialization