improving on the RefTerm API