fixed some log stuff