ignoring output files, added more basic line validation