add term add link, cleanup