now uses the files passed to it via the command line