now takes multiple input files