throw an error if more than one filename is specified