use input file if given