restore links.json in generate_list, review comment in teca.py