added basic formatting for dates and other types