migrate ksmd to glog and logging levels