log optimizations