optimized configure