minor fixes in logging