add support for date serialization