added time types serialization