better script parsing perf