add time serialization