modified getLinkAttr and addBrainLink