wip on parsing script chunks