optimized script for multi require