script parser/compiler fixed