improve log statements