add attr_name to fields to allow duplicate names to be handled with different roles