some small changes in logging