fix minor bugs with log handling