pretty sure generate_links works