running tern setup