script parsing fix