add in some error checking make sure the config and file list are passed