replaced *insptr with script[insptr]
more vm stuff