changed the link handling from the file to an dictionary -> speed improvments, understandable