tern node