bugs in logging