looks like both get_filestate and wrap_write_file are adding each file to the read_files state dude.  I think that fixing that, if it's indeed a problem, is outside of the scope of this fix.  In the meantime I'll just usort the list and merge, now that there's logging.