cleanup (remove ctx_links)