fix main to allow multiple files.