resolved scope for duplicate records
wip
change type to type_name
markup stub