minimal optimizations, logs &c