maybe we can call `scriptTerm.freq();` only once and assign it to a member or pass it in as a ctor argument that way we don't have to catch the IOException?