fixing data logger threading/log.d