optimized bootstrap