optimized batch files