updated script parser in ParseFiles.cs