updates to line_term.pl