save links to file