add script parsing/compiling for event handlers