completed event and script parsing