turn links into a set when loading from protobuffs