more optimizations. added settings