handle multiple files, with different field names, logging instead of printing