fix some log statements