check input file (#2)