added file output stub; fixed input file refresh issue