revised build script, add event, data pass through