adding tern submodule