added glog mode