can handle multiple files