new attempt to output script