the getDefaultFields method now also returns the fieldnames of the fields as array keys.