add error when term is not found. fixes #1
exit 1