- bug fixes in logging