detecting duplicates in the register branch: #MSG-155 In Progress