updated logging section