tern dox