adding support for multiple input files