improvements to log