udpated logging