add stream source as parameter, add demo-invoking script