convert links to files