optimizations and settings