renamed links to extlinks and added a links function