fix line breaks
added support for date object