added support for term files