various log fixes