added support for time.Time and struct names