some log fixes