finish script parser