added a limit to the number of links the relay index will accept