optimized scripts