handle multiple files at once