optimized build process