don't open all the files at the same time. fixes #6