made script *work* without an input file