small fixes in logging