updated output script