optimizations for bootstrap