require tern only if installed
add some color