logging: switched terr to use clog instead of cerr