tern tweaking